import { Server } from "./http";
export const loginApi = (params?: any) => {
  return Server.post("/park/login", params);
}

export const getCardListApi = (params?: any) => {
  return Server.get("/parking/card/list", {params});
}
// get delete {}
// put post 
export const addCardApi = (params?: any) => {
  return Server.post("/parking/card", params);
}

export const delCardListApi = (params?: any) => {
  return Server.delete("/parking/card/"+params.id, {params});
}

export const getCardDetailApi = (params?: any) => {
  return Server.get("/parking/card/detail/"+params.id);
}


export const editCardApi = (params?: any) => {
  return Server.put("/parking/card/edit", params);
}

